package cn.qu.phizline.common;

/**
 * Created by zh on 17/8/30.
 */
public class TypeUtils {

    public static <T> T newInstance(Class<T> clazz) {
        T obj = null;
        try {
            obj = clazz.newInstance();
        } catch (InstantiationException | IllegalAccessException e) {
            e.printStackTrace();
        }
        return obj;
    }
}
